# 作者: YYJ
# 2025年06月12日14时31分45秒
# 2486249622@qq.com


file_read = open('file/file.txt', mode='r+', encoding='utf8')
file_write = open('file_copy.txt', mode='w+', encoding='utf8')
while True:
    text = file_read.readline()
    if not text:
        break
    file_write.write(text)

file_write.close()
file_read.close()